function vs:system/game_ctrol/guard_tower/ai/attack/consume_power
summon marker ~ ~ ~ {Tags:[guardTower-e.bullet,temp]}
data modify entity @n[tag=temp,distance=..1,type=marker] data.target set from entity @s item.components."minecraft:custom_data".guardTowerData.target
data modify entity @n[tag=temp,distance=..1,type=marker] data.owner set from entity @s UUID
tag @n[tag=temp,distance=..1,type=marker] remove temp
particle enchanted_hit ~ ~ ~ 0.4 0.4 0.4 1 30
playsound minecraft:block.beacon.deactivate master @a ~ ~ ~ 2 2

function vs:system/game_ctrol/guard_tower/anim/play_no_stop {anim:"ready_attack"}